
import { axios } from '@/utils/request'
export function homeworkList(parameter) {
  return axios({
    url: '/school/homeworks',
    method: 'post',
    data: parameter
  })
}


export function homeworkInfo(id) {
  return axios({
    url: '/school/homeworks/' + id,
    method: 'post',
  })
}

export function homeworkDel(params, id) {
  return axios({
    url: '/school/homeworks/' + id + '/delete',
    method: 'post',
    data: params
  })
}

//创建单次作业
export function homeworkOnceCreate(parameter) {
  return axios({
    url: '/school/homeworks/once-create',
    method: 'post',
    data: parameter
  })
}

export function homeworkReadStudent(params,id) {
  return axios({
    url: '/school/homeworks/'+id+'/show-info',
    method: 'post',
    data:params
  })
}

export function reply(params) {
  return axios({
    url: '/school/homeworks/comment',
    method: 'post',
    data:params
  })
}
export function delCom(params) {
  return axios({
    url: '/school/homeworks/'+params+'/delete-comment',
    method: 'post',
  })
}
